package cn.com.dhcc.turbo.entity.registry.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.turbo.entity.registry.MonitorQuota;

/**
 * turbo_monitor_quota监控指标表 RowWapper
 * 
 * @日期：2014-6-12 下午3:05:37
 * @作者：张洪涛
 * @版权所有：东华软件
 * @版本：1.0
 */
public class MonitorQuotaRowWapper implements RowMapper<MonitorQuota> {
	@Override
	public MonitorQuota mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		MonitorQuota vo = new MonitorQuota();
		vo.setId(rs.getString("id"));
		vo.setName(rs.getString("name"));
		vo.setMtime(rs.getDate("mtime"));
		vo.setRemark(rs.getString("remark"));
		vo.setQuotaGroup(rs.getString("quota_group"));
		vo.setRuleForSelect(rs.getString("rule_for_select"));
		vo.setRuleName(rs.getString("rule_name"));
		vo.setValueSug1(rs.getString("value_sug1"));
		vo.setValueSug2(rs.getString("value_sug2"));
		vo.setCode(rs.getString("code"));
		vo.setAlterable(rs.getString("alterable"));
		vo.setModifiable(rs.getString("modifiable"));
		vo.setRuleSug(rs.getInteger("rule_sug"));
		vo.setAlterTemplateSug(rs.getString("alter_template_sug"));
		vo.setOwner(rs.getString("owner"));
		vo.setAlterPipeline(rs.getString("alter_pipeline"));
		vo.setValue1(rs.getString("value1"));
		vo.setValue2(rs.getString("value2"));
		vo.setConfId(rs.getString("confId"));
		vo.setStatus(rs.getString("status"));
		return vo;
	}

}
